Finding Pairwise Intersections of Rectangles in a Query Rectangle
نویسندگان
چکیده
We consider the following problem: Preprocess a set S of n axis-parallel boxes in R so that given a query of an axis-parallel box in R, the pairs of boxes of S whose intersection intersects the query box can be reported efficiently. For the case that d = 2, we present a data structure of size O(n log n) supporting O(log n+ k) query time, where k is the size of the output. This improves the previously best known result by de Berg et al. which requires O(log n + k log n) query time using O(n log n) space. There has been no result known for this problem for higher dimensions, except that for d = 3, the best known data structure supports O( √ n log n+ k log n) query time using O(n √ n log n) space. For a constant d > 2, we present a data structure supporting O(n1−δ logd−1 n + k polylog n) query time for any constant 1/d ≤ δ < 1. The size of the data structure is O(nδd−2δ+1 log n).
منابع مشابه
Algorithm for finding the largest inscribed rectangle in polygon
In many industrial and non-industrial applications, it is necessary to identify the largest inscribed rectangle in a certain shape. The problem is studied for convex and non-convex polygons. Another criterion is the direction of the rectangle: axis aligned or general. In this paper a heuristic algorithm is presented for finding the largest axis aligned inscribed rectangle in a general polygon. ...
متن کاملApproximate Orthogonal Range Search using Patricia Tries
We use Patricia tries to answer 2-approximate orthogonal range search on a set of n random points and rectangles in k-dimensional space. Given n k-dimensional random points or rectangles and a k-dimensional query rectangle, 2-approximate orthogonal range query counts (or reports) the points in the query rectangle or the rectangles intersecting the query rectangle, allowing errors near the bound...
متن کاملFinding the Largest Empty Rectangle Containing Only a Query Point in Large Multidimensional Databases
Given a two-dimensional space, let S be a set of points stored in an R-tree, let R be the minimum rectangle containing the elements of S, and let q be a query point such that q / ∈ S and R ∩ q 6= ∅. In this paper, we present an algorithm for finding the empty rectangle with the largest area, sides parallel to the axes of the space, and containing only the query point q. The idea behind algorith...
متن کاملApproximating hitting sets of axis-parallel rectangles intersecting a monotone curve
In this note, we present a simple combinatorial factor 6 algorithm for approximating the minimum hitting set of a family R = {R1, . . . ,Rn} of axis-parallel rectangles in the plane such that there exists an axis-monotone curve γ that intersects each rectangle in the family. The quality of the hitting set is shown by comparing it to the size of a packing (set of pairwise non-intersecting rectan...
متن کاملOptimal rectangle packing
We consider the NP-complete problem of finding an enclosing rectangle of minimum area that will contain a given a set of rectangles. We present two different constraintsatisfaction formulations of this problem. The first searches a space of absolute placements of rectangles in the enclosing rectangle, while the other searches a space of relative placements between pairs of rectangles. Both appr...
متن کامل